#ifndef __TRANSFORMS_H__
#define __TRANSFORMS_H__

#include <cocos2d.h>
using namespace cocos2d;

namespace gofgame {
	namespace common {
		namespace ui {

			class Component;

			class Transforms {
			public:
				static CCPoint cocos2dPointToUIPoint(Component *component, const CCPoint &point);
				static CCPoint uiPointToCocos2dPoint(Component *component, const CCPoint &point);
				static CCRect cocos2dRectToUIRect(Component *component, const CCRect &rect);
				static CCRect uiRectToCocos2dRect(Component *component, const CCRect &rect);
			protected:
				Transforms();
			};
		}
	}
}

#endif //__TRANSFORMS_H__
